/**
 * 排班表基础样式
 * 提供核心样式和CSS变量供插件使用
 */

:root {
  /* 主题颜色 */
  --schedule-primary-color: #3498db;
  --schedule-secondary-color: #2ecc71;
  --schedule-danger-color: #e74c3c;
  --schedule-warning-color: #f39c12;
  --schedule-info-color: #9b59b6;

  /* 中性色 */
  --schedule-gray-50: #f9f9f9;
  --schedule-gray-100: #f5f5f5;
  --schedule-gray-200: #eee;
  --schedule-gray-300: #ddd;
  --schedule-gray-400: #ccc;
  --schedule-gray-500: #999;
  --schedule-gray-600: #666;
  --schedule-gray-700: #444;
  --schedule-gray-800: #333;
  --schedule-gray-900: #222;

  /* 文字颜色 */
  --schedule-text-primary: #333;
  --schedule-text-secondary: #666;
  --schedule-text-disabled: #999;
  --schedule-text-inverse: #fff;

  /* 背景色 */
  --schedule-bg-primary: #fff;
  --schedule-bg-secondary: #f5f5f5;
  --schedule-bg-hover: #f9f9f9;

  /* 边框 */
  --schedule-border-color: #ddd;
  --schedule-border-radius: 4px;

  /* 阴影 */
  --schedule-shadow-sm: 0 1px 3px rgb(0, 0, 0, 0.1);
  --schedule-shadow-md: 0 2px 8px rgb(0, 0, 0, 0.1);
  --schedule-shadow-lg: 0 4px 16px rgb(0, 0, 0, 0.15);

  /* 间距 */
  --schedule-spacing-xs: 4px;
  --schedule-spacing-sm: 8px;
  --schedule-spacing-md: 16px;
  --schedule-spacing-lg: 24px;
  --schedule-spacing-xl: 32px;

  /* 字体 */
  --schedule-font-family: 'Segoe UI', tahoma, geneva, verdana, sans-serif;
  --schedule-font-size-xs: 12px;
  --schedule-font-size-sm: 14px;
  --schedule-font-size-md: 16px;
  --schedule-font-size-lg: 18px;
  --schedule-font-size-xl: 20px;

  /* 动画 */
  --schedule-transition-fast: 150ms;
  --schedule-transition-base: 250ms;
  --schedule-transition-slow: 350ms;

  /* Z-index */
  --schedule-z-index-dropdown: 1000;
  --schedule-z-index-modal: 1500;
  --schedule-z-index-tooltip: 2000;
}

/* 重置样式 */
.schedule-container *,
.schedule-container *::before,
.schedule-container *::after {
  box-sizing: border-box;
}

/* 容器 */
.schedule-container {
  background: var(--schedule-bg-primary);
  color: var(--schedule-text-primary);
  font-family: var(--schedule-font-family);
  font-size: var(--schedule-font-size-md);
  line-height: 1.6;
  position: relative;
  width: 100%;
}

/* 加载状态 */
.schedule-loading {
  align-items: center;
  background: var(--schedule-bg-secondary);
  display: flex;
  justify-content: center;
  min-height: 400px;
}

.loading-spinner {
  color: var(--schedule-primary-color);
  font-size: var(--schedule-font-size-lg);
}

/* 空状态 */
.schedule-empty {
  align-items: center;
  color: var(--schedule-text-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  padding: var(--schedule-spacing-xl);
  text-align: center;
}

.schedule-empty p {
  margin: var(--schedule-spacing-sm) 0;
}

/* 通用工具类 */
.schedule-flex {
  display: flex;
}

.schedule-flex-center {
  align-items: center;
  display: flex;
  justify-content: center;
}

.schedule-flex-between {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.schedule-grid {
  display: grid;
}

/* 响应式 */
@media (width <= 768px) {
  .schedule-container {
    font-size: var(--schedule-font-size-sm);
  }
}
